<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>内容溢出</title>
    <style>
        div{
            width: 100px;
            height:100px;
            background-color:red;
            /*内容溢出处理*/
            /*overflow: scroll;*/
            overflow-x: hidden;
        }
    </style>
</head>
<body>
<div>
    鹅鹅鹅<br>
    曲项向天歌<br>
    白毛浮绿水<br>
    红掌拨清波<br>
    鹅鹅鹅<br>
    曲项向天歌<br>
    白毛浮绿水<br>
    红掌拨清波<br>
    asdafsadgfjnaslkgjaewfwa
</div>
</body>
</html>